home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000007_icon-group-sender _Wed Apr 29 12:22:14 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  3KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id MAA21969
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Wed, 29 Apr 1998 12:22:14 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA10283; Wed, 29 Apr 1998 12:22:11 -0700
  7. Message-Id: <3.0.5.32.19980429075520.007a38f0@doors>
  8. X-Sender: bgbauer#alpha.delta.edu@doors
  9. X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
  10. Date: Wed, 29 Apr 1998 07:55:20 -0700
  11. To: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
  12. From: Scissors <jebediah@bigfoot.com>
  13. Subject: EOL Termination Sequences.
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset="us-ascii"
  16. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  17. Status: RO
  18. Content-Length: 1599
  19.  
  20.  
  21. Is anyone out there using Win95/dos?
  22.  
  23. Im having a terrible time with eol termination sequences.
  24.  
  25. Two problems mostly.  Ive set the WI Line termination option to
  26.  
  27. linebreak=CRLF
  28.  
  29. but for some reason, every so often. (seems to be random as far as I can
  30. tell.)
  31. I will save a file, and *BANG* all the 100+ lines of text lose their EOL's and
  32. end up in four lines at the top of my window.  For the most part this is
  33. happening inside of notepad.  If I edit a file that was saved using WI, it
  34. appears to be using strange EOL's which Notepad zaps on saving the file.
  35. Ive never encountered this before using Icon, and it doesnt happen when Im 
  36. editing anything but Icon source.  Ive checked the settings, all seems fine.
  37.  
  38. : /
  39.  
  40. Help!?!
  41.  
  42. Secondly, im loading a file using:
  43.  
  44. lines := []
  45. lines := filetext(fname)  
  46.  
  47. when I find the line I wish to insert text after, I have been using
  48.  
  49. lines[i] := lines[i] || "\r\l" || "what I want to insert"
  50.  
  51. (The reason Im 'appending it' is because when I tried it before, it would
  52. allow me to add any new lines to 'lines[]'.  When I first created the
  53. procedure, I was attempting to slide all the remaining down a notch, thus
  54. freeing up one of list[], so I could then inserting the new line.  But it
  55. would not add anything beyond the original *line.)
  56.  
  57. ok, so this all works ok... until I open the file in notepad, and save it.
  58. then the line I inserted last shows up as
  59.  
  60. Previous TextNew Text
  61.  
  62. is "\r\l" the incorrect line termination sequence?  I tried "\r\n" and it
  63. does the same.  What is the correct EOL for dos/win?
  64.  
  65. Thanks for any help in advance
  66.  
  67. jebediah@bigfoot.com
  68.  
  69.